package com.qiche.mapper;

import com.qiche.common.MyMapper;
import com.qiche.dto.SimpleMemberDto;
import com.qiche.model.StoreMember;
import com.qiche.param.StoreMemberParam;
import com.qiche.vo.StoreMemberVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface StoreMemberMapper extends MyMapper<StoreMember> {

    List<StoreMemberVo> selectStoreMemberWithCarsByPage(StoreMemberParam param);

    List<SimpleMemberDto> searchByPhoneOrNameOrCarNum( @Param("keyword")String keyword,  @Param("merchantId")Integer merchantId);
}